Skip to content

Conversation

Toqozz
Copy link
Contributor

@Toqozz Toqozz commented Dec 16, 2024

The type for the argument color for many of the debug rendering functions appears to be wrong. It seems like it's actually passed by value, not by pointer. This was causing a segfault for me.

It's weird because e.g. drawGeometry() has the color passed by value, but I guess the rest didn't get updated at the same time.

In the jolt documentation they are also passed by value: https://jrouwe.github.io/JoltPhysics/class_debug_renderer.html#acea9470f13a1d50b677e2aaaeb9eeaed

These are not pointers, but value types.
@hazeycode hazeycode merged commit 1996547 into zig-gamedev:main Jan 3, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants